package com.cskaoyan.controller;

import com.cskaoyan.bean.bo.WxFeedbackSubmitBo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: Tao
 * @time: 2023/1/3 1:50
 */
@RestController
@RequestMapping("wx/feedback")
public class WxFeedbackController {

    @Autowired
    WxFeedbackService feedbackService;

    /**
     * 应用反馈功能的实现
     *
     * @param wxFeedbackSubmitBo
     * @return
     */
    @RequestMapping("submit")
    public BaseRespVo submit( @RequestBody WxFeedbackSubmitBo wxFeedbackSubmitBo) {
        feedbackService.submit(wxFeedbackSubmitBo);
        return BaseRespVo.ok();
    }
}
